package organization

import (
	"gq_volunteer_platform/bean"
)

func IdGetName(id uint) (name string, err error) {
	// 查询记录
	var one Organization
	if err := bean.MysqlDb.Where("`id`=?", id).First(&one).Error; err != nil {
		return "", err
	}

	return one.Name, nil
}
